package org.openmore.platform.pay.alipay;

import com.alipay.api.DefaultAlipayClient;
import org.openmore.platform.entity.PlatformConfig;

public class MyAliPayClient extends DefaultAlipayClient {
    /*携带配置信息**/
    private PlatformConfig aliPayConfig;
    public MyAliPayClient(String serverUrl, String appId, String privateKey) {
        super(serverUrl, appId, privateKey);
    }

    public MyAliPayClient(String serverUrl, String appId, String privateKey, String format) {
        super(serverUrl, appId, privateKey, format);
    }

    public MyAliPayClient(String serverUrl, String appId, String privateKey, String format, String charset) {
        super(serverUrl, appId, privateKey, format, charset);
    }

    public MyAliPayClient(String serverUrl, String appId, String privateKey, String format, String charset, String alipayPublicKey) {
        super(serverUrl, appId, privateKey, format, charset, alipayPublicKey);
    }

    public MyAliPayClient(String serverUrl, String appId, String privateKey, String format, String charset, String alipayPublicKey, String signType) {
        super(serverUrl, appId, privateKey, format, charset, alipayPublicKey, signType);
    }

    public MyAliPayClient(String serverUrl, String appId, String privateKey, String format, String charset, String alipayPublicKey, String signType, String proxyHost, int proxyPort) {
        super(serverUrl, appId, privateKey, format, charset, alipayPublicKey, signType, proxyHost, proxyPort);
    }

    public MyAliPayClient(String serverUrl, String appId, String privateKey, String format, String charset, String alipayPublicKey, String signType, String encryptKey, String encryptType) {
        super(serverUrl, appId, privateKey, format, charset, alipayPublicKey, signType, encryptKey, encryptType);
    }

    public PlatformConfig getAliPayConfig() {
        return aliPayConfig;
    }

    public void setAliPayConfig(PlatformConfig aliPayConfig) {
        this.aliPayConfig = aliPayConfig;
    }
}
